<template>
  <div class="login-iphone">
    <el-form label-width="60px" :rules="IphoneRules" :model="phone">
      <el-form-item label="手机号" prop="number">
        <el-input v-model="phone.number" />
      </el-form-item>
      <el-form-item label="验证码" prop="code">
        <el-input v-model="phone.code">
          <template #append>获取验证码</template>
        </el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { reactive } from 'vue'
import { IphoneRules } from '../config/account-config'

export default defineComponent({
  setup() {
    const phone = reactive({
      number: '',
      code: ''
    })

    return { phone, IphoneRules }
  }
})
</script>

<style scoped lang="less">
.login-iphone {
  /deep/ .el-form-item__label {
    width: 70px !important;
  }
}
</style>
